package com.java.model;

import java.io.Serializable;

import com.java.annotation.ColumnMapper;

/**
 * 学生类
 */
public class Student implements Serializable {
	
	private static final long serialVersionUID = 1L; 

	@ColumnMapper("sid")
	private int id;
	
	@ColumnMapper("sname")
	private String name;

	private int age;
	
	private double score;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public double getScore() {
		return score;
	}

	public void setScore(double score) {
		this.score = score;
	}
	
	@Override
	public String toString() {
		return "学号：" + this.id + "， 姓名：" + this.name + "，年龄：" + this.age;
	}
	
}
